package com.yun.zf.common.material.model.manager;

import com.yun.zf.common.validate.IsMobile;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 个人资料
 */
@Data
public class UserInfoMo {
    //用户id
    @ApiModelProperty(value = "用户ID")
    @NotNull
    private Long userId;

    @ApiModelProperty(value = "绑定手机号码")
    @IsMobile
    @NotNull
    private String userName;

    @ApiModelProperty(value = "用户性别",allowableValues = "0, 1")
    private String sex;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

}
